Skip to main content

CL - PhysicsHelper - IgnoreCollisions

Toggle collisions between 2 colliders so they can freely move past each other.

Example#

Ignore collisions

CL.PhysicsHelper.IgnoreCollisions(collider1, collider2, true)

Reenable collisions

CL.PhysicsHelper.IgnoreCollisions(collider1, collider2, false)

User Variables#

Componentvariable
Collider (or list of colliders)self.collider1
Collider (or list of colliders)self.collider2